package com.ten.common.core.entity;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
 * (Course)实体类
 *
 * @author makejava
 * @since 2022-12-07 18:33:12
 */
@Data
@TableName("tb_check_course")
public class CheckCourse implements Serializable {
    private static final long serialVersionUID = 647950202169256956L;
    /**
     * 课程审核id
     */

    @TableId(value = "course_check_id",type = IdType.AUTO)
    private Integer courseCheckId;
    /**
     * 课程id
     */
    private String courseId;
    /**
     * 审核状态
     */
    private String checkStatus;
    /**
     * 审核人id
     */
    private Integer checkUserId;
    /**
     * 审核内容
     */
    private String checkContent;
    /**
     * 审核时间
     */
    private LocalDateTime checkTime;

    /**
     * 前端需要的字符串，数据库中不存在
     */
    @TableField(exist = false)
    private String subjectName;

    /**
     * cover, title, price
     * 这是课程表中的信息，连表查询时有数据则显示该字段
     */
    @TableField(exist = false)
    private String cover;
    @TableField(exist = false)
    private String title;
    @TableField(exist = false)
    private Double price;

    /**
     * 课程分类需要的字段
     */
    @TableField(exist = false)
    private String subjectId;
    @TableField(exist = false)
    private String subjectParentId;
    @TableField(exist = false)
    private String status;

    /**
     * 课程描述
     */
    @TableField(exist = false)
    private String description;


}

